{% extends "learning_logs/base.html" %}
{% load bootstrap3 %}

{% block header %}
	<h2>添加新条目</h2>
{% endblock header %}

{% block content %}
<p>新建主题</p>
<!-- actions指向要提交请求的URL -->
<form action="{% url 'learning_logs:new_topic' %}" method = 'post' class='form'>
	<!-- 验证csrf，保证post和get都是同一个，防范跨站伪造请求 -->
	{% csrf_token %}
	{% bootstrap_form form %}
	{% buttons %}
	<button name="submit" class="btn btn-primary">提交</button>
	{% endbuttons %}
</form>

{% endblock content %}